package com.sservice.commonBusiness.service;

import com.sservice.commonBusiness.e.Category;
import com.sservice.commonBusiness.vo.CategoryVo;

import java.util.List;

/**
 * Created by byte_su@163.com on 2018/01/12.
 */
public interface CategoryService {
    /**
     * 根据查询条件进行查找
     *
     * @param category
     * @return
     */
    List<Category> findByExample(Category category);
    List<CategoryVo> querySummaryByPage(CategoryVo category);


    /**
     * 基于datar关系对category 进行查找
     *
     * @param record
     * @return
     */
    List<CategoryVo> queryWithDrByPage(CategoryVo record); // 自定义分页
    /**
     *
     * @param record
     * @return
     */
    List<CategoryVo> queryWithUserWx(CategoryVo record); // 自定义分页
    int countWithUserWx(CategoryVo record); // 自定义分页

    /**
     * 基于datar关系对category 进行统计
     *
     * @param record
     * @return
     */
    int countWithDrByPage(CategoryVo record); // 自定义分页

    List<CategoryVo> page(CategoryVo category);

    List<CategoryVo> queryByPage(CategoryVo category);

    int queryCount(CategoryVo category);

    int deleteByPrimaryKey(Integer id);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    Category selectBy(Category record);

    List<Category> selectListBy(Category record);

}
